import { FC } from 'react'

import { useAppDispatch } from '@/store'
import { logoutAsync } from '@/store/user.store'

const Guide: FC = () => {
  const dispatch = useAppDispatch()

  const logOut = async () => {
    // 登出
    await dispatch(logoutAsync())
  }

  return <div onClick={logOut}>
    Guide
  </div>
}

export default Guide
